

/**
 * @description: Is it a development mode //是否为开发模式
 * @returns:
 * @example:
 */
export function isDevMode(): boolean {
	return getEnvValue<boolean>('VITE_DEV');
}

/**
 * @description: Get environment variables
 * @returns:
 * @example:
 */
export function getEnvValue<T = any>(key: string): T {
	return import.meta.env[key];
}
